package com.dx.api;


import com.dx.constants.SecurityConstants;
import com.dx.constants.ServiceNameConstants;
import com.dx.domain.QaOperLog;
import com.dx.factory.RemoteQaLogFactory;
import com.dx.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

//TODO后续要添加nacos依赖配置
//如何跳过拦截器的拦截
@FeignClient(name = ServiceNameConstants.LOG_SERVICE,contextId = "remoteQaLogService",fallbackFactory = RemoteQaLogFactory.class)
public interface RemoteQaLogService{
    @PostMapping("/log/add")
    public R<?> add(@RequestBody QaOperLog log ,@RequestHeader("sa-token") String token);
}
